package org.matchit.converter;

import org.springframework.core.convert.converter.Converter;

/**
 * Converter which returns the exact same instance as output.
 * 
 * @author Jeroen van Schagen
 * @since 20-03-2011
 *
 * @param <T> type of instance being returned
 */
public class SameInstanceConverter<T> implements Converter<T, T> {

    /**
     * {@inheritDoc}
     */
    @Override
    public T convert(T source) {
        return source;
    }

}
